/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.niedziela12.pai.ejb.reservation.facades;

import com.niedziela12.pai.ejb.entities.User;
import com.niedziela12.pai.ejb.entities.Reservation;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Kamil
 */
@Local
public interface ReservationFacadeLocal {

    void create(Reservation reservation);

    Reservation edit(Reservation reservation);

    void remove(Reservation reservation);

    Reservation find(Object id);

    List<Reservation> findAll();

    List<Reservation> findRange(int[] range);

    int count();
    
    User findCurrentUser(String login);
    
    List<Reservation> findUserReservation(String login);
}
